package com.xltt.watchlauncher3.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.xltt.watchlauncher3.R;
import com.xltt.watchlauncher3.activity.ListLauncherActivity;
import com.xltt.watchlauncher3.activity.MainActivity;
import com.xltt.watchlauncher3.utils.Logger;

public class MotionFragment extends BaseFragment{
    private View view;
    private TextView mTest;
    @Override
    protected View initView(LayoutInflater inflater) {
        Logger.d("运动界面 onViewCreated()");
        view = inflater.inflate(R.layout.motion_fragment, null);
        init(view);
        return view;

    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        Logger.d("onActivityCreated()");
    }

    private void init(View view){
        mTest = view.findViewById(R.id.test);
        mTest.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getActivity(),ListLauncherActivity.class));
            }
        });
    }

    @Override
    public void onPause() {
        Logger.d("onPause()");
        super.onPause();
    }

    @Override
    public void onResume() {
        Logger.d("onResume()");
        super.onResume();
    }

    @Override
    public void onDestroy() {
        Logger.d("onDestroy()");
        super.onDestroy();
    }
}
